package com.hly.musicbackground.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hly.musicbackground.domain.Fiction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface FictionDao extends BaseMapper<Fiction> {

    @Update("update fiction set abnormal = #{abnormal} where fiction_id = #{fid}")
    void updateAbnormal(@Param("fid") int fid, @Param("abnormal") int abnormal);

}
